﻿@model PhoneBook.Models.UserGroups.UserGroupAddOrEditModel

@{
    ViewBag.Title = "UserGroupCreate";
}

<h2>UserGroupCreate</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>UserGroupAddModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.GroupName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.GroupName)
            @Html.ValidationMessageFor(model => model.GroupName)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>

    if(Model.ContactId.HasValue)
    {
        @Html.HiddenFor(model=>model.ContactId)
    }
}

